package com.xuecheng.order.service;
import com.baomidou.mybatisplus.extension.service.IService;

import com.xuecheng.api.learning.model.dto.OrdersDTO;

import com.xuecheng.api.order.model.pay.PayCodeUrlResult;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.order.entity.Orders;
/**
 * 订单 服务类
 */
public interface OrdersService extends IService<Orders> {
    /**
     * 创建订单
     * @param username 课程发布Id
     * @param coursePubId 用户
     * @return
     */
    public OrdersDTO createOrder(String username, Long coursePubId);

    PayCodeUrlResult createPayCodeResult(String orderNo, String username);
}
